﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AddNewQuestion.aspx.vb" Inherits="CricketForum.AddNewQuestion" Async="true"%>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    <h2>
       Ask a Question :
    </h2>
    </p>
    <p>
    <table width="100%">
        <tr>
            <td >
                Question Title :
            </td>
            <td>
                <asp:TextBox ID="txtTitle" runat="server" Width="600px" MaxLength="255" ></asp:TextBox>
            </td>

             <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="txtTitle" ErrorMessage="Required  Question Titile" ValidationGroup="AddCricInfoComments"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td >
                Question Details :
            </td>
            <td>
                <asp:TextBox ID="txtDesc" runat="server" Height="150px" 
                    TextMode="MultiLine" Width="600px"    ></asp:TextBox>
            </td>

            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="txtDesc" ErrorMessage="Required  Question Description" ValidationGroup="AddCricInfoComments"></asp:RequiredFieldValidator>
            </td>
        </tr>      

       
        <tr>
            <td colspan="3"  style="text-align:center">
                <asp:Button ID="btnSave" runat="server" Text="Save Question" ValidationGroup="AddCricInfoComments"  />
            </td>
        </tr>
    </table>
    </p>
</asp:Content>
